<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<title>影像采集详细信息</title>
<link rel="stylesheet" type="text/css" href="${ctx}/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${ctx}/easyui/easyui_my.css">
<link rel="stylesheet" type="text/css" href="${ctx}/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="${ctx}/css/css.css" />
<style type="text/css">
    .panel-title{ color: #444444;}
</style>
<script type="text/javascript" src="${ctx}/js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="${ctx}/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx }/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/js/common.js"></script>
<script type="text/javascript" src="${ctx}/js/jquery.form.js"></script>
<%-- <script type="text/javascript" src="${ctx}/js/MapUtil.js"></script> --%>
<style type="text/css">
#wfdd_chzn{
 display: none;
}
img {
    vertical-align: top;
}
.progress { position:relative; width:400px; border: 2px solid #ddd; padding: 1px; border-radius: 5px; }
.bar { position:absolute;background-color: #006400; width:10%; height:30px; border-radius: 3px;}
.percent { position:absolute; display:inline-block; top:3px; left:60%;font-weight:bold }
.mask {       
            position: absolute; top: 0px; left:0; width:100%; height:100%;
            z-index: 1002; left: 0px;
        }
 .submitFramexs body{background-color:transparent}
</style>

</head>

<script>
//显示遮罩层    
/* function showMask(){     
    $("#mask").css("height",$(document).height());     
    $("#mask").css("width",$(document).width());     
    $("#mask").show();     
}  
//隐藏遮罩层  
function hideMask(){     
      
    $("#mask").hide();     
}  */
     $(function(){
        var bar = $('.bar');
        var percent = $('.percent');
        var status = $('#status');
        $('#uploadPicForm').ajaxForm({
            beforeSerialize:function(){
                //alert("表单数据序列化前执行的操作！");
                //$("#txt2").val("java");//如：改变元素的值
            },
            beforeSubmit:function(){
            	try{
              		var listImgObj=document.getElementById("yxxxinfo").getElementsByTagName("img");
              		}catch(e){
              			alert("无档案信息,请上传档案文件后再保存！");
              			return;
              			 $(".submitFramexs").show();
                         $("#mask").show();
              		}
            },
            beforeSend: function() {
                //status.empty();
               // showMask();
                //var percentVal = '0%';
              //  var percentVal = '上传中....';
              //  bar.width(percentVal);
               // percent.html(percentVal);
                $(".submitFramexs").show();
                $("#mask").show();
            },
            uploadProgress: function(event, position, total, percentComplete) {//上传的过程
                //position 已上传了多少
                //total 总大小
                //已上传的百分数
              //  var percentVal = percentComplete + '%';
               // bar.width(percentVal);
               // percent.html(percentVal);
                //console.log(percentVal+"=="+position+"=="+total);
            	 $(".submitFramexs").show();
                 $("#mask").show();
            },
            success: function(data) {//成功
               // var percentVal = '100%';
               // bar.width(percentVal)
                //percent.html(percentVal);       
            	 $(".submitFramexs").hide();
                 $("#mask").hide();
            },
            error:function(err){//失败
            	 $(".submitFramexs").hide();
                 $("#mask").hide();
                 uploadFlag=false;
                alert("档案提交异常！");
            },
            complete: function(xhr) {//完成
               // status.html(xhr.responseText);
                //save();
               // hideMask();
                
                $(".submitFramexs").hide();
                $("#mask").hide();
                if(xhr.responseText=="true" || xhr.responseText==true){
                    uploadFlag=true;
                	$("#imageBase64Shot").val('');
                    $("#imageBase64").val('');
                    $("#fileTypeArea").val('');
                    $("#fileNameArea").val('');
                    $("#fileSerialNumber").val('');
               		alert("档案保存成功!");
               }else{
            		uploadFlag=false;
               		alert("档案保存失败!");
               }
            }
        });

    });
    //切换扫描仪与高拍仪
    function changeDevice(currentId){
    	if("HighShotId"==currentId){
    		$("#HighShotDiv").attr("style", "display:block;");
    		$("#FisScannerDiv").attr("style", "display:none;");
    		//$("#captrue").attr("style", "display:block;");
    		//$("#playOcx").attr("style", "display:none;");
    		document.getElementById("captrue").style.display="block";
			document.getElementById("playOcx").style.display="none";
    		Start_onclick();
    	}else{
    		$("#FisScannerDiv").attr("style", "display:block;");
    		$("#HighShotDiv").attr("style", "display:none;");   		
    		//$("#captrue").attr("style", "display:none;");
    		//$("#playOcx").attr("style", "display:block;");
    		document.getElementById("captrue").style.display="none";
    		document.getElementById("playOcx").style.display="block";
    	}
    }
    //关闭窗口执行关闭高拍仪
    window.onunload = function(){
   	 document.getElementById("captrue").bStopPlay();
   }
    //扫面议验证扫描	
    function startScanValidate(){
 	    var SerialNumber = img2base64.GetSerialNumber();
 	   if(SerialNumber==null || SerialNumber=='') {
	    	alert("检查扫描仪失败！请确认扫描仪是否开启");
	    	return;
	    }
 	    $("#SerialNumberFlag").val(SerialNumber);
     	if('${ScanValidateFlag}'=='NotValidate'){
     		startScan();
     	}else{
     		$.ajax({
 			type:'POST',
 	        url:'${ctx}/yxxx/validateSbxh.htm',
 	        data:{
 	        	sbxh:SerialNumber
 	        },
 	        dataType:'json',
 	        success:function(data, textStatus, jqXHR){
 	        	if(data == 'true' || data == true){
 	        		startScan();
 	        	}else{
 	        		alert("未检测到设备安全模块,无法执行扫描！");
 	        		return;
 	        	}
 	        }
 	   });
     }
    }
    //高拍仪验证扫描
    function shotValidate(){
 	   var serinum = document.getElementById("captrue").sGetDevicesId();
 		$("#gpySerialNumberFlag").val(serinum);
 		if('${GpyValidateFlag}'=='NotValidate'){
 			shot();
 		}else{
 		   $.ajax({
 				type:'POST',
 		        url:'${ctx}/yxxx/validateSbxh.htm',
 		        data:{
 		        	sbxh:serinum
 		        },
 		        dataType:'json',
 		        success:function(data, textStatus, jqXHR){
 		        	if(data == 'true' || data == true){
 		        		shot();		        		
 		        	}else{
 		        		alert("未检测到设备安全模块,无法执行扫描！");
 		        		return;
 		        	}
 		        }
 		   }); 
 	    }
    }
</script>
<body class="easyui-layout">
<div id="mask" class="mask" style="z-index:9999991; display: none;background:url(${ctx}/images/sdx.png) repeat;" >
<img src="${ctx}/images/ldd.gif" style="margin:9% auto 0; width: 245px; height: 69px; display: block;">
</div>
<iframe style=" display: none;width:100%; height:100%;position:absolute; left:0;top:0;z-index:999999;background: transparent;filter:alpha(opacity=0);  
      -moz-opacity:0;  
      -khtml-opacity:0;  
      opacity:0;" name="submitFramexs" class="submitFramexs" frameborder="no"></iframe>
<form id="gclsForm">
<div data-options="region:'center',border:false,cls:'yujszhidongshibie'" style="overflow-y :hidden;padding: 7px;">
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'north',border:false" style="height: 36px;overflow-y :hidden; background:#f0f0f0; border:1px solid #d2d2d2; border-bottom: none;">
			<table cellspacing="0" cellpadding="0" border="0" width="100%" class="dananguanglikuang">
		     	 <tr>
		     		 <th align="right" height="26" width="60">流水号：</th>
		     	 	 <td height="26">
		             		<a id="lsh" style="font-weight: bold; color: #777777;">${info.lsh }</a>
		             </td>
		             <th align="right" height="26" width="70">号牌号码：</th>
		             <td>
		                 <a id="hphmmc" style="font-weight: bold; color: #777777;">${info.hphmmc }</a>
		             </td>
		             <th align="right" height="26" width="70">号牌种类：</th>
		             <td>
		                 <a id="hpzlmc" style="font-weight: bold; color: #777777;">${info.hpzlmc }</a>
		             </td>
		             <th align="right" width="80">业务类型：</th>
		             <td height="26">
		             		<a id="ywmc" style="font-weight: bold; color: #777777;">${info.ywmc }</a>
		             </td>
		             <th align="right" height="26" width="80">所有人：</th>
		             <td>
		                 <a id="syr" style="font-weight: bold; color: #777777;">${info.syr }</a>
		             </td>
		              <th align="right" height="26" width="100">车辆识别编号：</th>
		             <td>
		                 <a id="clsbdh" style="font-weight: bold; color: #777777;">${info.clsbdh }</a>
		             </td>
		          </tr>  
		    </table>
		    </div>
		    <div data-options="region:'center',border:false" style="position:relative;border:1px solid #d2d2d2;">	 <!-- data-options="region:'center',border:false" -->
		    <!-- <div style="float:left;width:70%;height:93%" id="tpStyle"> -->
		   
		   <div class="easyui-layout" data-options="fit:true" style=" position: relative;">
		    <div data-options="region:'center',border:false">
		       <object id="playOcx" classid="clsid:BCB28301-A827-4DE4-BA67-623FAC960893"  width="100%" height="100%" style="display: none;"> </object>
		       <object id="captrue" classid="clsid:454C18E2-8B7D-43C6-8C17-B1825B49D7DE"  width="100%" height="100%"></object>
		    </div>
<!-- 		    <div style="float:left;" id="captrueDiv" style="display: none;">
				<object classid="clsid:454C18E2-8B7D-43C6-8C17-B1825B49D7DE" id="captrue"  width="700" height="540" ></object>
			</div> -->
			<div data-options="region:'east',border:false" style=" width:141px;border-left:1px solid #d2d2d2; position: relative;">
		    <ul class="qiehuangaopsaomy">
			  <li onClick="changeDevice(this.id)" id="FisScannerId" class="hovergaopaisaom"> <a href="#" >扫描仪</a></li> 
			  <li onClick="changeDevice(this.id)" id="HighShotId"> <a href="#">高拍仪</a></li> 
		    </ul>
		    <div id="deviceOperation" >
		    <div id="HighShotDiv" style="display:none;">
		    <div class="jichenganniuzai">
			     <!-- <a id="uploadwww" href="#" class="yangshianniu3" onClick="javascript:Start_onclick();" style="visibility: visible;">开启</a>
			     <a id="uploadwww" href="#" class="yangshianniu4" onClick="javascript:Stop_onclick();" style="visibility: visible;">关闭</a> -->
				 <a id="uploadwww" href="#" class="yangshianniu3" onClick="javascript:shotValidate();" style="visibility: visible;">拍摄</a>
				 <a class="yangshianniu5" href="###" onClick="javascript:uploadPicAndSave()">保存上传</a>
		    </div>
		     <table cellspacing="0" cellpadding="0" border="0" width="130" class="cheliangxinxi" style=" position: absolute; left:5px; bottom:7px; margin-bottom: 0;">	
			    <input type="hidden" id="docMode" value="1" name="mode" onClick="setMode(this)" checked="checked"/>
			    <tr>
				  <th align="center">曝光度</th>
				  <td>
					<select id="exposure" onChange="setExposure(this)">
						<option value="100">100</option>
						<option value="90">90</option>
						<option value="80">80</option>
						<option value="70">70</option>
						<option value="60">60</option>
						<option value="50" selected="selected">50</option>
						<option value="40">40</option>
						<option value="30">30</option>
						<option value="20">20</option>
						<option value="10">10</option>
						<option value="0">0</option>					
					</select>
				</td>
				</tr>
				<tr>
				<th align="center">参数设置</th>
				<td>
					<input type="button" value="参数设置" onClick="ParaSet_onclick()">&nbsp;
				</td>
				</tr>
				<tr>
				<th align="center">分辨率</th>
				<td>
				   <input type="button" value="分辨率" onClick="pin()">&nbsp;
				</td>
				</tr>
				<tr>
<!-- 				<th align="center">DPI</th>
				<td>
				   <input type="button" value="DPI" onClick="setDpi()">&nbsp;
				</td>
				</tr> -->
				</table>
			</div>
		    <div id="FisScannerDiv" style="display:block;">	    		    
	  			<div class="jichenganniuzai">
				<a class="yangshianniu1" href="###" onclick="selectScanner()">选择扫描仪</a>
				<a class="yangshianniu2" href="###" onclick="startScanValidate()">开始扫描</a>
				<a class="yangshianniu5" href="###" onClick="javascript:uploadPicAndSave()">保存上传</a>
				</div>
				<table cellspacing="0" cellpadding="0" border="0" width="130" class="cheliangxinxi" style=" position: absolute; left:5px; bottom:7px; margin-bottom: 0;">			    				
				<tr>
				  <th align="center">分辨率</th>
				  <td>
				    <input type="radio" name="Resolution" value="150" checked="checked"/>150 dpi<br />
				    <input type="radio" name="Resolution" value="200" />200 dpi<br />
				  </td>
				</tr>
				<tr>
				  <th align="center">进纸模式</th>
				  <td>
				    <input type="radio" name="PaperSupply" value="3" checked="checked"/>自动<br />
				    <input type="radio" name="PaperSupply" value="1" />ADF反面<br />
				    <input type="radio" name="PaperSupply" value="2" />ADF双面<br />
				  </td>
				</tr>
				</table>
<!-- 				<table cellspacing="0" cellpadding="0" border="0" width="189" class="cheliangxinxi" style=" position: absolute; left:5px; bottom:7px; margin-bottom: 0;">			    
 -->				<!-- <tr>
				  <th align="center">像素类型</th>
				  <td>
				   设置图片保存路径
				  	<input type="hidden" id="scanPath" size="10" value="D:\image\localImg"/>
				    <input type="radio" name="PixelType" value="0" />黑白<br />
				    <input type="radio" name="PixelType" value="1" />灰度<br />
				    <input type="radio" name="PixelType" value="2" checked="checked" />彩色<br />
				  </td>
				</tr> -->
				<!-- <tr>
				  <th align="center">分辨率</th>
				  <td>
				    <input type="radio" name="Resolution" value="2" checked="checked"/>300 dpi<br />
				    <input type="radio" name="Resolution" value="3" />400 dpi<br />
				    <input type="radio" name="Resolution" value="4" />500 dpi<br />
				    <input type="radio" name="Resolution" value="5" />600 dpi<br />
				  </td>
				</tr>
				<tr>
				  <th align="center">进纸模式</th>
				  <td>
				    <input type="radio" name="PaperSupply" value="1" checked="checked"/>ADF正面<br />
				    <input type="radio" name="PaperSupply" value="2" />ADF双面<br />
				  </td>
				</tr>
				</table> -->
				</div>						
		    </div>	
		   </div>	
		   </div>		    		
		    </div>				    			    
</div>
</div>

	<div data-options="region:'east',border:false" style="width: 330px;overflow-y :hidden;padding: 7px 7px 7px 2px;">
	    	<div class="easyui-layout" data-options="fit:true" style="border:1px solid #d2d2d2;">
				<div data-options="region:'center',border:false" style="overflow-y :hidden">
							<p class="shipingjiemiangtanggr_top">
								采集记录 
								<i class="addNumssji">共扫描<span id="addNums">0</span>张图片</i>
							</p>
							<div class="shipingjiemiangtanggr_bottom" id="yxxxinfo2" style=" overflow: auto;">
									<ul id="yxxxinfo" style="padding: 0 0 30px 0;">
									</ul>
							</div>
				</div>
				<div data-options="region:'south',border:false" style="height: 30px;">
					<!-- <div class="diyipaidhusnfhenfnf1">
	         	       <a id="selectAllId" href="#" class="congzhim" onClick="javascript:selectAll();" style="visibility: visible;">全选</a>	             	            
	        	       <a id="delId" href="#" class="congzhim" onClick="javascript:delByselect();" style="visibility: visible;">删除</a>	             	            	              
		               <a id="saveId" href="#" class="congzhim" onClick="javascript:uploadPicAndSave();" style="visibility: visible;">保存采集</a>	             	            
		             </div>  -->
		             <!-- <div class="diyipaidhusnfhenfnf1">
		             		         	   <a id="preId" href="#" class="congzhim" style=" margin: 0 15px 0 0 ;" onClick="javascript:GoToPrePage();" style="visibility: visible;">上一条</a>
		               <a id="nextId" href="#" class="congzhim" onClick="javascript:GoToNextPage();" style="visibility: visible;">下一条</a>	               
		           </div> --> 
		           <input type="hidden" id="currentLsh" value="${info.lsh}"/>
					<input type="hidden" id="startTime" value="${startTime}"/>
					<input type="hidden" id="endTime" value="${endTime}"/>
					<!-- 上一个机动车序号 -->
					<input type="hidden" id="preLsh" value="${preLsh}"/>
					<!-- 下一个机动车序号 -->
					<input type="hidden" id="nextLsh" value="${nextLsh}"/>
					<!-- 当前页数所有的机动车序号 -->
					<input type="hidden" id="lshs" value="${lshs }"/>
					<!-- 总页数 -->
					<input type="hidden" id="totalPage" value="${pageInfo.totalPage}"/>
					<!-- 当前页数 -->
					<input type="hidden" id="currentPage" value="${pageInfo.currentPage}"/>
					<!-- 每一页大小 -->
					<input type="hidden" id="pageSize" value="${pageInfo.pageSize}"/>
					<!--当前数据在xhs中的位置-->
					<input type="hidden" id="currentIndex" value="${pageInfo.currentIndex}"/>
	               <div class="diyipaidhusnfhenfnf1" style="margin:2px;">
	               		<a id="selectAllId" href="#" class="congzhim" onClick="javascript:selectAll();" style="visibility: visible;">全选</a>	             	            
		        	    <a id="delId" href="#" class="congzhim" onClick="javascript:delByselect();" style="visibility: visible;">删除</a>	 
						    <c:choose>
		                        <c:when test="${nextLsh ne '0'}"> 
		                         <a href="#" style=" float: right; margin: 0 27px 0 0 ;" class="congzhim" onClick="javascript :pageJump('${nextLsh }','pageDown');" style="visibility: visible;">下一条</a>
		                        </c:when>
		                        <c:otherwise>
		                            <a href="#" style=" float: right; margin: 0 27px 0 0 ;" class="congzhim">下一条</a>
		                        </c:otherwise>   
		                    </c:choose>
		                    <c:choose>
		                        <c:when test="${preLsh ne '0'}"> 
		                            <a href="#" class="congzhim" style=" float: right; margin: 0 8px 0 0 ;" onClick="javascript :pageJump('${preLsh}','pageUp');" style="visibility: visible;">上一条</a>
		                        </c:when>
		                        <c:otherwise>
		                            <a href="#" style=" float: right; margin: 0 8px 0 0 ;" class="congzhim1">上一条</a>
		                        </c:otherwise> 
	                       </c:choose>
		          </div>
				</div>
			</div>

	    </div>
</form>
	    <div style="display: none;">
			<form id="uploadPicForm" name="uploadPicForm" action="${ctx}/imageitem/UploadImageFtp.htm" method="post" enctype="multipart/form-data" target="submitFrame">  <!-- target="submitFrame" -->
				    <input type="hidden" id="vehicleXh" name="xh" value="${info.xh }"/>
					<input type="hidden" id="hphmFlag"  name="hphm" value="${info.hphm }"/>
					<input type="hidden" id="hpzlFlag"  name="hpzl" value="${info.hpzl }"/>
					<input type="hidden" id="clpp1Flag" name="clpp1" value="${info.clpp1 }"/>
					<input type="hidden" id="clsbdhFlag" name="clsbdh" value="${info.clsbdh }"/>
					<input type="hidden" id="fdjhFlag"  name="fdjh" value="${info.fdjh }"/>
					<input type="hidden" id="csysFlag"  name="csys" value="${info.csys }"/>
					<input type="hidden" id="syrFlag"   name="syr" value="${info.syr }"/>
					<input type="hidden" id="fzjgFlag"  name="fzjg" value="${info.fzjg }"/>				
					<input type="hidden" id="lshFlag"   name="lsh" value="${info.lsh }"/>
					<input type="hidden" id="ywlxFlag"  name="ywlx" value="${info.ywlx }"/>
					<input type="hidden" id="ywyyFlag"  name="ywyy" value="${info.ywyy }"/>
					<input type="hidden" id="ywmcFlag"  name="ywmc" value="${info.ywmc }"/>
					
					<input type="hidden" id="startTime" name="startTime" value="${startTime }"/>
					<input type="hidden" id="endTime" name="endTime" value="${endTime }"/>
					
					<input type="hidden" id="SerialNumberFlag"  name="SerialNumber" />
					<input type="hidden" id="gpySerialNumberFlag"  name="gpySerialNumber" />
					
				 <textarea id="imageBase64Shot" name="imageBase64Shot"></textarea>
				 <textarea id="imageBase64" name="imageBase64"></textarea>
				 <textarea id="fileTypeArea" name="fileTypeArea"></textarea>
				 <textarea id="fileNameArea" name="fileNameArea"></textarea>
				 <textarea id="fileSerialNumber" name="fileSerialNumber"></textarea>
			</form>
			<iframe style="width:0; height:0; margin-top:-10px;display: none;" name="submitFrame" src="about:blank"></iframe>
		</div>
		<!-- 扫描仪对象 -->
		<object id="fhkScan" width="0" height="0" classid="clsid:07cf3b59-2cf2-4ee2-bcef-1320638005e7"></object>
		<object id="img2base64" width="0" height="0" classid="clsid:4CAF60C8-668C-4E69-8C0A-9A8E0833F3FB"></object>	
	    <!-- 高拍仪对象 -->
<!-- 		<object classid="clsid:454C18E2-8B7D-43C6-8C17-B1825B49D7DE" id="captrue"  width="0" height="0" ></object>
 -->		<object classid="clsid:8622e61a-22d1-4c10-9ecc-4dfc1f9a4f03" id="cap" width="0" height="0"></object>
        <!-- 图片处理对象 -->
        <!-- <div id="playOcxPic" >  style="display: none;"
          <object id="playOcx" classid="clsid:BCB28301-A827-4DE4-BA67-623FAC960893"  width="600" height="407"> </object>
		</div> -->
</body>
<script type="text/javascript">
$(window).resize(function() {
	ydpheight();
});

$(function(){
	ydpheight();
	$(".qiehuangaopsaomy li").click(function(){
			$(".qiehuangaopsaomy li").removeClass("hovergaopaisaom");
			$(this).addClass("hovergaopaisaom");
	})
});

function ydpheight(){
	var ultouchLi = $(".shipingjiemiangtanggr_bottom");
	ultouchLi.css("height",$(window).height()-72 +"px");
	}
//查询信息
function pageJump(_lsh,upOrDown){
	var currentPage=$('#currentPage').val();//获取当前页数
    var totalPage=$('#totalPage').val();//总页数
    var index=$('#currentIndex').val();//当前数据在当前分页页面中的位置
    var pageSize=$('#pageSize').val();//每一页展示的个数
	var currentLsh=$('#currentLsh').val();//当前机动车序号
    var lshs=$('#lshs').val();//当前分页所有的xh,已都好形式分隔开
    var lshArr=[];
    if(null!=lshs && undefined!=lshs){
        LshArr=lshs.split(',');
    }
    if(upOrDown=='pageUp'){
        if(index==0){
            index=Number(pageSize)-1;
            _lsh='0,'+_lsh+','+currentLsh;
            currentPage=Number(currentPage)-1;//减一页
        }else{
        	_lsh=getPreOrNextLsh(_lsh,lshArr,upOrDown)+','+_lsh+','+currentLsh;
        }
    }else if(upOrDown=='pageDown'){
        //下一页
        if(index==Number(pageSize)-1){
            index=0;
            _lsh=currentLsh+','+_lsh+',0';
            currentPage=Number(currentPage)+1;//加一页
        }else{
            index=Number(index)+1;
            _lsh=currentLsh+','+_lsh+','+getPreOrNextLsh(_lsh,lshArr,upOrDown);
        }
    }
    var startTime=$('#startTime').val();//开始时间
    var endTime=$('#endTime').val();//结束时间
    var param={
    	lsh:_lsh,
    	lshs:lshs,
    	currentPage:currentPage,
    	pageSize:pageSize,
    	totalPage:totalPage,
    	currentIndex:index,
    	startTime:startTime,
    	endTime:endTime
    };
    parent.addTab("机动车档案补录详情","${ctx}/yxxx/findYxcjByxhFirstIn.htm?lsh="+_lsh+"&lshs="+lshs+
      "&currentPage="+currentPage+"&totalPage="+totalPage+
      "&pageSize="+pageSize+"&currentIndex="+index+"&startTime="+startTime+"&endTime="+endTime);
}


 /* var pageIndex=0;
var pageSize=1;
var pageTotal=0;
function GoToPrePage() {
    pageIndex -= 1;
    pageIndex = pageIndex >= 1 ? pageIndex : 1;
    AjaxGetData(pageIndex, pageSize);
}

function GoToNextPage() {
        pageIndex += 1;
        AjaxGetData(pageIndex, pageSize);
}
function AjaxGetData(index,size) {
	var startTime = $("#startTime").val();
	var endTime = $("#endTime").val();
	var hphm = encodeURI(encodeURI($("#hphmFlag").val()));
	var hpzl = $("#hpzlFlag").val();
	var dazt = $("#daztFlag").val();
	 $.ajax({
         url: "${ctx}/yxxx/findYxcjByxhUpAndDown.htm?" + new Date().getTime(),
         type: "get",
         data: "page="+pageIndex+"&pageSize="+pageSize+"&startTime="+startTime+"&endTime="+endTime+"&dazt="+dazt,
         dataType: "json",
         success:function(data){
	         //check(data.rows[0].tpurl);
	         judgePrePage(data.page);
	         judgeNextPage(index,pageTotal);
        	 $("#gclsForm").form('load',data.rows[0]); 
        	 showYxxxList(data.rows[0].xh);
         }
	 });
} */
  $(function () {  
   /*  pageIndex=parseInt('${page.page}');
    pageTotal=parseInt('${page.totalPages}');
    //check('${list.tpurl}');
    judgePrePage(pageIndex);
    judgeNextPage(pageIndex,pageTotal); */
   // AjaxGetData(pageIndex, pageSize);
   //alert($("#vehicleXh").val());
   	//showYxxxList($("#vehicleXh").val());
	 showYxxxList("${info.lsh}","${info.xh}","${info.ywlx}");

});  
 /*  function judgePrePage(index){
	  if(index<=1){
		  $("#preId").removeClass("congzhim").addClass("congzhim1");
		  $("#preId").removeAttr("onclick");
	  }else{
		  $("#preId").removeClass("congzhim1").addClass("congzhim");
		  $("#preId").attr("onclick","GoToPrePage();");
	  }
  }
  function judgeNextPage(index,pageTotal){
	  if(index>=pageTotal){
		  $("#nextId").removeClass("congzhim").addClass("congzhim1");
		  $("#nextId").removeAttr("onclick");
	  }else{
		  $("#nextId").removeClass("congzhim1").addClass("congzhim");
		  $("#nextId").attr("onclick","GoToNextPage();");
	  }
  } */
  //显示图片列表
  function showYxxxList(vehicleLsh,Xh,ywlx) {
		$.ajax({
			type:'POST',
			url:'${ctx}/yxxx/findYxcjRelation.htm',
			data:{
				lsh:vehicleLsh,
				xh:Xh
				},
			dataType:'json',
			success:function(data, textStatus, jqXHR){
				//changeSrcFirst(data[0].singleIpaddress);
				$("#yxxxinfo").html("");
				var tableBodyStr = "";
				   if(data==""){
				      tableBodyStr+="<p class=\"xiangguanxinxzhifjiluyi1\" style=\"border:none;width:200px\">没有符合条件的查询结果！</p>";
				    }else{	 			    	
				      $.each(data,function(i,n){				    	  
						if (n.singleIpaddress != "") {
							v_addNums++;					
							var str = n.singleIpaddress.replace(".jpg",".thm.jpg");
							//var tpid= n.tpid+i;
							var ranDom=GetRandomNum(10);
							tableBodyStr += "<li>";
							tableBodyStr += "<input type=\"hidden\" name=\"picDeviceId\">";
							tableBodyStr += "<input type=\"hidden\" name=\"picBase64Str\" value=\""+str+"\">";
							tableBodyStr += "<input type=\"hidden\" name=\"picIpFlag\" value=\""+n.singleIpaddressEncrypt+"\">";
							tableBodyStr += "<input type=\"hidden\" name=\"fileTypeFlag\" value=\""+n.id+"\">";
							tableBodyStr += "<input type=\"checkbox\"  name=\"checkbox2\"  value=\"chk"+ranDom+"\"  style=\"display:none;\">";
							tableBodyStr += "<input type=\"checkbox\" class=\"dingweixuanzhongk\" name=\"checkbox1\" id=\""+ranDom+"\" value=\""+ranDom+"\">";
							tableBodyStr += "<img  onerror=\"javascript:this.src='${ctx}/images/tupiangsd.png'\" src=\""+str+"\" width=\"150\" height=\"100%\" style=\"float: left; margin: 0 5px 0 0;\" onclick=\"javascript:changeSrc(this)\"/>";
							if(ywlx=="A"){
							if(n.id=='1'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" checked=\"checked\" /><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"  </div>";
							}else if(n.id=='2'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" checked=\"checked\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"</div>";
							}else if(n.id=='3'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\" checked=\"checked\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"</div>";
							}else if(n.id=='4'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\" checked=\"checked\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"</div>";
							}else if(n.id=='5'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\" checked=\"checked\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"</div>";
							}else if(n.id=='6'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\" checked=\"checked\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"</div>";
							}else if(n.id=='7'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\" checked=\"checked\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"</div>";
							}else if(n.id=='8'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\" checked=\"checked\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"</div>";
							}else if(n.id=='9'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\" checked=\"checked\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
								"</div>";
							}else if(n.id=='10'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车所有人身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1 hoverbiaoshi\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\" checked=\"checked\"/><label>合同</label></div> "+ 
								"</div>";
							}else{
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
								"  <div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
								"  <div class=\"xuanzhebixuan1\" title=\"机动车购置税凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
								"  <div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 								
								"</div>";
							}
							}else if(ywlx=="B"){
								if(n.id=='1'){
								tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" checked=\"checked\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"二手车交易发票\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>交易发票</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>来历凭证</label></div> "+
									"</div>";
								}else if(n.id=='2'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" /><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan \" title=\"二手车交易发票\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\" checked=\"checked\"/><label>交易发票</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>来历凭证</label></div> "+
									"</div>";
								}else if(n.id=='3'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" /><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" checked=\"checked\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"二手车交易发票\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\" /><label>交易发票</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>来历凭证</label></div> "+
									"</div>";
								}else if(n.id=='4'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" /><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" /><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"二手车交易发票\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>交易发票</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\" checked=\"checked\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>来历凭证</label></div> "+
									"</div>";	
								}else if(n.id=='5'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" /><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" /><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"二手车交易发票\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>交易发票</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\" checked=\"checked\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>来历凭证</label></div> "+
									"</div>";	
								}else{
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" /><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" /><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"二手车交易发票\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\" /><label>交易发票</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\" /><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>来历凭证</label></div> "+
									"</div>";	
								}
							}else if(ywlx=="D" || ywlx=="K" || ywlx=="L" ){
								if(n.id=='1'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" checked=\"checked\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"变更证明资料\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>变更证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
									"</div>";
								}else if(n.id=='2'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"变更证明资料\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" checked=\"checked\"/><label>变更证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
									"</div>";	
								}else if(n.id=='3'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"变更证明资料\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>变更证明</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\" checked=\"checked\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
									"</div>";	
								}else if(n.id=='4'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"变更证明资料\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>变更证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\" checked=\"checked\"/><label>查验记录表</label></div> "+
									"</div>";
								}else{
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"变更证明资料\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>变更证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
									"</div>";	
								}
							}else if(ywlx=="E" ){
								if(n.id=='1'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"抵押登记采集《机动车抵押登记/质押备案申请表》\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" checked=\"checked\"/><label>抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>登记证书</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"机动车所有人和抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"合同(采集首页和签字或加盖公正复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>合同</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"解除抵押岗采集申请表\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>解除抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"贷款结清证明\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>结清证明</label></div> "+
									"</div>";
								}else if(n.id=='2'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"抵押登记采集《机动车抵押登记/质押备案申请表》\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" checked=\"checked\"/><label>登记证书</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"机动车所有人和抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"合同(采集首页和签字或加盖公正复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>合同</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"解除抵押岗采集申请表\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>解除抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"贷款结清证明\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>结清证明</label></div> "+
									"</div>";	
								}else if(n.id=='3'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"抵押登记采集《机动车抵押登记/质押备案申请表》\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>登记证书</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"机动车所有人和抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\" checked=\"checked\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"合同(采集首页和签字或加盖公正复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>合同</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"解除抵押岗采集申请表\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>解除抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"贷款结清证明\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>结清证明</label></div> "+
									"</div>";
								}else if(n.id=='4'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"抵押登记采集《机动车抵押登记/质押备案申请表》\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>登记证书</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"机动车所有人和抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"合同(采集首页和签字或加盖公正复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\" checked=\"checked\"/><label>合同</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"解除抵押岗采集申请表\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>解除抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"贷款结清证明\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>结清证明</label></div> "+
									"</div>";
								}else if(n.id=='5'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"抵押登记采集《机动车抵押登记/质押备案申请表》\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>登记证书</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"机动车所有人和抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"合同(采集首页和签字或加盖公正复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>合同</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"解除抵押岗采集申请表\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\" checked=\"checked\"/><label>解除抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"贷款结清证明\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>结清证明</label></div> "+
									"</div>";
								}else if(n.id=='6'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"抵押登记采集《机动车抵押登记/质押备案申请表》\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>登记证书</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"机动车所有人和抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"合同(采集首页和签字或加盖公正复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>合同</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"解除抵押岗采集申请表\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>解除抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"贷款结清证明\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\" checked=\"checked\"/><label>结清证明</label></div> "+
									"</div>";
								}else{
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"抵押登记采集《机动车抵押登记/质押备案申请表》\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>登记证书</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"机动车所有人和抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"合同(采集首页和签字或加盖公正复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>合同</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"解除抵押岗采集申请表\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>解除抵押申请</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"贷款结清证明\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>结清证明</label></div> "+
									"</div>";
								}
							}else if(ywlx=="G"){
								if(n.id=='1'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" checked=\"checked\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"商务部门报废回收证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>回收证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表(监销车辆)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
									"</div>";
								}else if(n.id=='2'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"商务部门报废回收证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" checked=\"checked\"/><label>回收证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表(监销车辆)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
									"</div>";	
								}else if(n.id=='3'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"商务部门报废回收证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>回收证明</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"查验记录表(监销车辆)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\" checked=\"checked\"/><label>查验记录表</label></div> "+
									"</div>";
								}else{
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"商务部门报废回收证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>回收证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表(监销车辆)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
									"</div>";
								}
							}else if(ywlx=="I"){
								if(n.id=='1'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" checked=\"checked\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"原始纸质档案资料(初次登记信息、车辆相关技术参数变更登记信息、最近一次车辆登记信息\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>原始档案信息</label></div> "+
									"</div>";
								}else if(n.id=='2'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"身份证正反面\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" checked=\"checked\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"原始纸质档案资料(初次登记信息、车辆相关技术参数变更登记信息、最近一次车辆登记信息\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>原始档案信息</label></div> "+
									"</div>";	
								}else if(n.id=='3'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\" checked=\"checked\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"原始纸质档案资料(初次登记信息、车辆相关技术参数变更登记信息、最近一次车辆登记信息\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>原始档案信息</label></div> "+
									"</div>";
								}else if(n.id=='4'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"原始纸质档案资料(初次登记信息、车辆相关技术参数变更登记信息、最近一次车辆登记信息\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\" checked=\"checked\"/><label>原始档案信息</label></div> "+
									"</div>";
								}else{
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"身份证正反面\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"原始纸质档案资料(初次登记信息、车辆相关技术参数变更登记信息、最近一次车辆登记信息\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>原始档案信息</label></div> "+
									"</div>";
								}
							}else if(ywlx=="S"){
								if(n.id=='1'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\" checked=\"checked\"/><label>资料清单</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>受理凭证</label></div> "+
									"</div>";
								}else if(n.id=='2'){
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>资料清单</label></div> "+
									"<div class=\"xuanzhebixuan hoverbiaoshi\" title=\"\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\" checked=\"checked\"/><label>受理凭证</label></div> "+
									"</div>";
								}else{
									tableBodyStr += "<div class=\"dingweixialak100\"> "+
									"<div class=\"xuanzhebixuan\" title=\"\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>资料清单</label></div> "+
									"<div class=\"xuanzhebixuan\" title=\"\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>受理凭证</label></div> "+
									"</div>";
								}
							}
							tableBodyStr += "<input  type=\"button\" id=\"deletePic"+ranDom+"\" onclick=\"delByselectSin(this.id);\" value=\"删除\" class=\"deletetp\"/> ";
							tableBodyStr += "<input  type=\"button\" id=\"replacePic"+ranDom+"\" name=\"replaceName\" onclick=\"checkStaFunc(this.id);\" value=\"替换\" class=\"tihuantp\"/>";
							tableBodyStr += "</li>";
							
						}else{
							tableBodyStr += "<li>";
							tableBodyStr += "<img onerror=\"javascript:this.src='${ctx}/images/tupiangsd.png'\" height=\"100%\" style=\"float: left; margin: 0 10px 0 0;\" onclick=\"javascript:changeSrc()\"/>";
							tableBodyStr += "</li>";
						}
				      });
			  }
				  $('#addNums').text(v_addNums);
				 $("#yxxxinfo").html(tableBodyStr);
				 //$.parser.parse($('#yxxxinfo'));
				 /* var selectOption = document.getElementById("yxxxinfo").getElementsByTagName("select");
				 console.info(ckbs[0][2].value);
				 for(var i=0;i<selectOption.length;i++){
					 document.getElementById("11")[2].selected=true;
				 } */
				
			},
			error:function(XMLHttpRequest, textStatus, errorThrown){
				
			}
		});
	}

//显示大图
  function changeSrc(thisDoc){
	    document.getElementById("captrue").style.display="none";
		document.getElementById("playOcx").style.display="block";
	    //$("#captrue").attr("style", "display:none;");  
		//$("#playOcx").attr("style", "display:block;");
		  var thisObj=$(thisDoc).parent().children("input[name='picBase64Str']");
		if(thisObj.val().indexOf("http://")!=-1){  //http地址传参数
			document.getElementById("playOcx").BindImage(thisObj.val().replace(".thm.jpg",".jpg"), 1);
		}else{  //本地地址传参数0
			//document.getElementById("playOcx").BindImage(thisDoc.src.substring(thisDoc.src.indexOf("///")+3), 0);
			document.getElementById("playOcx").BindImage(thisDoc.name,0);
		}
		//加水印
		//document.getElementById("playOcx").WaterImage();
	}
  //显示大图
  function changeSrcOld(thisDoc){
	    document.getElementById("captrue").style.display="none";
		document.getElementById("playOcx").style.display="block";
	    //$("#captrue").attr("style", "display:none;");  
		//$("#playOcx").attr("style", "display:block;");
		/* var playPic = "";
		$("#tpStyle").html("");
		playPic +="<img id=\"imggc\"  onerror=\"javascript:this.src='${ctx}/images/wutuffs.png'\" src=\""+srcValue+"\">";
		$("#tpStyle").html(playPic); */
		if(thisDoc.src.indexOf("http://")!=-1){  //http地址传参数
			document.getElementById("playOcx").BindImage($(thisDoc).parent().children("input[name='picIpFlag']").val(), 1);
		}else{  //本地地址传参数0
			//document.getElementById("playOcx").BindImage(thisDoc.src.substring(thisDoc.src.indexOf("///")+3), 0);
			document.getElementById("playOcx").BindImage(thisDoc.name,0);
		}
		//加水印
		//document.getElementById("playOcx").WaterImage();
	}
  //删除选中项
  function delByselect(){
	  
	  /* $("input[name='checkbox1']:checked").each(function(i,n){
	        var logoid=$(this).val();
	        if(i==0){
	            logoids+=logoid;
	        }else{
	            logoids+=","+logoid;
	        }
	    });*/
	  var  checkboxArray =[];
		var ckbs = document.getElementById("yxxxinfo").getElementsByTagName("input");
		var len = ckbs.length;
		for(var i=0;i<len;i++){
			
		    if(ckbs[i].type == "checkbox" && ckbs[i].name=="checkbox1" && ckbs[i].checked==true){
		    	checkboxArray.push(ckbs[i].value); 
		  }
		}
		for(var j=0;j<checkboxArray.length;j++){
			 $("#"+checkboxArray[j]).parent().remove();
			 v_addNums--;
			 $('#addNums').text(v_addNums); //显示当前档案数
		  } 
  }
/*   $('#yxxxinfo li').live('click',function(){
		//$('input').removeAttr('checked');	
	 	if($(this).find("input[type='checkbox']").prop("checked")){
			$(this).find("input[type='checkbox']").prop('checked',false); 
		}else{
			$(this).find("input[type='checkbox']").prop('checked',true);
		}  
	}) */
	//全部选中
	function selectAll(){
	        if($("input[name='checkbox1']").prop("checked")){
	        	$("input[name='checkbox1']").prop("checked", false);         	
			}else{
				$("input[name='checkbox1']").prop("checked", true); 
			}  
  		}

    
	//上传图片并保存
    function uploadPicAndSave(){
   	var imgArray = $("#yxxxinfo").find("input[name='picBase64Str']");
   	var imgArrayName = document.getElementById("yxxxinfo").getElementsByTagName("img");
	if(imgArray.length<1){
		alert("无档案信息,请上传档案文件后再保存！");
		return;
	}
	/* for(var i=0;i<imgArray.length;i++){
		if($(imgArray[i]).parent().children("input[name='fileTypeFlag']").val()==null || $(imgArray[i]).parent().children("input[name='fileTypeFlag']").val()==''){
			alert("有档案类型未标注！");
			return;
		}				
	} */
	if(uploadFlag==true){
	    
		var imageBase64ShotResults = document.getElementById("imageBase64Shot");
	    var imageBase64Results = document.getElementById("imageBase64");
	    var fileTypeAreaResults = document.getElementById("fileTypeArea");   
	    var fileNameAreaResults = document.getElementById("fileNameArea");
	    var fileSerialNumberResults = document.getElementById("fileSerialNumber");
	    var imageBase64ShotStr =imageBase64ShotResults.value;
	    var imageBase64Str =imageBase64Results.value;
	    var fileTypeAreaStr =fileTypeAreaResults.value;
	    var fileNameAreaStr =fileNameAreaResults.value;
	    var fileSerialNumberStr =fileSerialNumberResults.value;
	    for(var i=0;i<imgArray.length;i++){
	   	 if(imageBase64ShotStr!=''){
	   		 fileNameAreaStr +=',';
	   		fileSerialNumberStr +=',';
	   	if(imgArray[i].value.indexOf("http://")!=-1){
	   		imageBase64ShotStr +=',';
	   		imageBase64ShotStr +=imgArray[i].value;
	   		imageBase64Str +=',';
	   		imageBase64Str +=imgArray[i].value.replace(".thm","");
	   		fileTypeAreaStr +=',';
	   		fileTypeAreaStr +=$(imgArrayName[i]).parent().children("input[name='fileTypeFlag']").val();  
	   		fileNameAreaStr +=imgArray[i].value.substring(imgArray[i].value.lastIndexOf("/")+1);
	   	}else{
	   		imageBase64ShotStr +=',';	
	   		imageBase64ShotStr += imgArray[i].value;
	   		imageBase64Str +=',';
	   		//imageBase64Str += document.getElementById("captrue").Base64Encode(imgArrayName[i].name);
	   		imageBase64Str += img2base64.DoTrans(imgArrayName[i].name, true);  //原图片转换成Base64
	   		fileTypeAreaStr +=',';
	   		fileTypeAreaStr += $(imgArrayName[i]).parent().children("input[name='fileTypeFlag']").val(); 
	   		fileNameAreaStr +=imgArrayName[i].name.substring(imgArrayName[i].name.lastIndexOf("\\")+1);
	   	}
	   	fileSerialNumberStr +=$(imgArrayName[i]).parent().children("input[name='picDeviceId']").val();
			//fileNameAreaStr +=imgArray[i].src.substring(imgArray[i].src.lastIndexOf("/")+1,imgArray[i].src.lastIndexOf("."));
	   	
	     }else{
	   	  if(imgArray[i].value.indexOf("http://")!=-1){
		   		imageBase64ShotStr +=imgArray[i].value;
		     	imageBase64Str +=imgArray[i].value.replace(".thm","");
		   		fileTypeAreaStr +=$(imgArrayName[i]).parent().children("input[name='fileTypeFlag']").val();
		   		fileNameAreaStr +=imgArray[i].value.substring(imgArray[i].value.lastIndexOf("/")+1);
	     	}else{
	     		debugger;
	     		imageBase64ShotStr += imgArray[i].value;
	     		//imageBase64Str += document.getElementById("captrue").Base64Encode(imgArrayName[i].name);
	     		imageBase64Str += img2base64.DoTrans(imgArrayName[i].name, true);  //原图片转换成Base64 
	     		//imageBase64Str += document.getElementById("captrue").Base64Encode(imgArray[i].src.substring(imgArray[i].src.indexOf("///")+3));
		   		fileTypeAreaStr += $(imgArrayName[i]).parent().children("input[name='fileTypeFlag']").val();
		   		fileNameAreaStr +=imgArrayName[i].name.substring(imgArrayName[i].name.lastIndexOf("\\")+1);
	   		//alert(imgArray[i].src+"=="+captrue.Base64Encode(imgArray[i].src.substring(imgArray[i].src.indexOf("///")+3)));
	     	}
	   	fileSerialNumberStr +=$(imgArrayName[i]).parent().children("input[name='picDeviceId']").val();
	 		//fileNameAreaStr +=imgArray[i].src.substring(imgArray[i].src.lastIndexOf("/")+1,imgArray[i].src.lastIndexOf("."));
	   	
	     } 
	   }
	
	    imageBase64ShotResults.value=imageBase64ShotStr;
	    imageBase64Results.value=imageBase64Str;
	    fileTypeAreaResults.value=fileTypeAreaStr;
	    fileNameAreaResults.value=fileNameAreaStr;
	    fileSerialNumberResults.value=fileSerialNumberStr;
	    $("#uploadPicForm").submit();
	}else{
		$("#uploadPicForm").submit();
	}
	}
    //增加列表图片
    function addPic(Str,randDom,FileDir,deviceId){
    	var ywlx = $("#ywlxFlag").val();
    	var tableBodyStr="";
	  	tableBodyStr += "<li>";
	  	tableBodyStr += "<input type=\"hidden\" name=\"picDeviceId\" value=\""+deviceId+"\">";
	  	tableBodyStr += "<input type=\"hidden\" name=\"picBase64Str\" value=\""+Str+"\">";
	  	tableBodyStr += "<input type=\"hidden\" name=\"picIpFlag\">";
	  	tableBodyStr += "<input type=\"hidden\" name=\"fileTypeFlag\" value=\"0\">";
		tableBodyStr += "<input type=\"checkbox\" class=\"dingweixuanzhongk\" name=\"checkbox1\" id=\""+randDom+"\" value=\""+randDom+"\">";
		tableBodyStr += "<input type=\"checkbox\"  name=\"checkbox2\"  value=\"chk"+randDom+"\"  style=\"display:none;\">";
		tableBodyStr += "<img id=\""+randDom+"\" name=\""+FileDir+"\" src=\"data:image/jpeg;base64,"+Str+"\"  height=\"100%\" width=\"150\" style=\"float: left; margin: 0 5px 0 0;\" onclick=\"javascript:changeSrc(this)\">";
		tableBodyStr += "<input  type=\"button\" id=\"deletePic"+randDom+"\" onclick=\"delByselectSin(this.id);\" value=\"删除\" class=\"deletetp\"/> ";
		tableBodyStr += "<input  type=\"button\" id=\"replacePic"+randDom+"\" name=\"replaceName\" onclick=\"checkStaFunc(this.id);\" value=\"替换\" class=\"tihuantp\"/>";
		if(ywlx=="A"){ //注册
			tableBodyStr += "<div class=\"dingweixialak100\"> "+
				"<div class=\"xuanzhebixuan1\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
				"<div class=\"xuanzhebixuan1\" title=\"机动车所有人身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
				"<div class=\"xuanzhebixuan1\" title=\"机动车来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>来历凭证</label></div> "+
				"<div class=\"xuanzhebixuan1\" title=\"机动车查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
				"<div class=\"xuanzhebixuan1\" title=\"合格证或进口说明书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>合格证</label></div> "+
				"<div class=\"xuanzhebixuan1\" title=\"机动车交强险凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>交强险凭证</label></div> "+
				"<div class=\"xuanzhebixuan1\" title=\"完税证明或免税证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"7\"/><label>购置税凭证</label></div> "+ 
				"<div class=\"xuanzhebixuan1\" title=\"抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"8\"/><label>抵押权人身份证明</label></div> "+ 
				"<div class=\"xuanzhebixuan1\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"9\"/><label>登记证书</label></div> "+ 
				"<div class=\"xuanzhebixuan1\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"10\"/><label>合同</label></div> "+ 
				"</div>";
		}else if(ywlx=="B"){ //转移
			tableBodyStr += "<div class=\"dingweixialak100\"> "+
			"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"二手车交易发票\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>交易发票</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"来历凭证\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>来历凭证</label></div> "+
			"</div>";
		}else if(ywlx=="D" || ywlx=="K" || ywlx=="L" ){ //变更和补换领
			tableBodyStr += "<div class=\"dingweixialak100\"> "+
			"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"身份证正反面、加盖公章的组织机构代码证、委托书\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"变更证明资料\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>变更证明</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>查验记录表</label></div> "+
			"</div>";
		}else if(ywlx=="E"){ //抵押和解除抵押
			tableBodyStr += "<div class=\"dingweixialak100\"> "+
			"<div class=\"xuanzhebixuan\" title=\"抵押登记采集《机动车抵押登记/质押备案申请表》\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>抵押申请</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"机动车所有人和抵押权人身份证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"登记证书(第一页和签注页复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>登记证书</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"合同(采集首页和签字或加盖公章复印件)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>合同</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"解除抵押岗采集申请表\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"5\"/><label>解除抵押申请</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"贷款结清证明\" onclick=\"	OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"6\"/><label>结清证明</label></div> "+
			"</div>";
		}else if(ywlx=="G"){ //注销
			tableBodyStr += "<div class=\"dingweixialak100\"> "+
			"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"商务部门报废回收证明\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>回收证明</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"查验记录表(监销车辆)\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
			"</div>";
		}else if(ywlx=="I"){ //转入
			tableBodyStr += "<div class=\"dingweixialak100\"> "+
			"<div class=\"xuanzhebixuan\" title=\"业务申请表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>申请表</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"身份证正反面\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>身份证明</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"查验记录表\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"3\"/><label>查验记录表</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"原始纸质档案资料(初次登记信息、车辆相关技术参数变更登记信息、最近一次车辆登记信息\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"4\"/><label>原始档案信息</label></div> "+
			"</div>";
		}else if(ywlx=="S"){ //锁定
			tableBodyStr += "<div class=\"dingweixialak100\"> "+
			"<div class=\"xuanzhebixuan\" title=\"\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"1\"/><label>资料清单</label></div> "+
			"<div class=\"xuanzhebixuan\" title=\"\" onclick=\"OnChangFunc(this)\"><input type=\"checkbox\" style=\"display:none\" name=\"ztyanshi\" value=\"2\"/><label>受理凭证</label></div> "+
			"</div>";
		}
		tableBodyStr += "</li>";
		//document.getElementById('yxxxinfo').innerHTML+=tableBodyStr;	 //innerHTML 会刷新整个id内容，append不会
		$('#yxxxinfo').append(tableBodyStr);
		var a = $('#yxxxinfo2');
        a.scrollTop(a[0].scrollHeight);
    }
	//设置档案文件类型标识
	function OnChangFunc(obj){
	    var checkbox2Obj=$(obj).parent().parent().find('input[name=fileTypeFlag]');
    	var Inputobj=obj.getElementsByTagName("input")[0];
    	$(obj).parent().find("div").each(function(){
		  var thisObj=this.getElementsByTagName("input")[0];
			   
		   if ($(thisObj).val() == $(Inputobj).val()){
			   if($(thisObj).prop("checked")){
					$(thisObj).prop("checked", false);
					$(checkbox2Obj).val(0);					
					$(thisObj).parent().removeClass("hoverbiaoshi");
					//document.getElementById(id).style.background="#ff4d4d";
			   }else{
					$(thisObj).prop("checked", true);
					 $(thisObj).parent().addClass("hoverbiaoshi");
					$(checkbox2Obj).val($(thisObj).val());
			   }
			}else{
			   $(thisObj).prop("checked", false);
			   $(thisObj).parent().removeClass("hoverbiaoshi");
			}
    	})
    }
	
    function OnChangFunc2(obj){
  	  //var selectedOption=obj.options[obj.selectedIndex];
  	  //console.info($(obj).prev()[0].getAttribute("name"));
  	  $(obj).parent().parent().children("input[name='fileTypeFlag']").val($(obj).children().children().val());
      $(obj).parent().find(".xuanzhebixuan").removeClass("hoverbiaoshi");
	  $(obj).addClass("hoverbiaoshi");
    }
	function checkStaFunc(id) {
		var obj=$("#"+id).parent().find('input[name=checkbox2]');
		$('#yxxxinfo > li > input[name=checkbox2]').each(function () {
		//	console.info($(this).prop('checked'));
        if ($(this).val() == $(obj).val()){
		   if($(this).prop("checked")){
			$(this).prop("checked", false);
			document.getElementById(id).style.background="#ff4d4d";
		   }else{
			$(this).prop("checked", true);
			document.getElementById(id).style.background="#808080";
		   }
		}
        else 
           $(this).prop("checked", false);
     });
	}
    function delByselectSin(id){
    	v_addNums--;
		$('#addNums').text(v_addNums);
    	$("#"+id).parent().remove();
    }
    //生成固定长度随机数
    function GetRandomNum(n){
	    var chars = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
         var res = "";
         for(var i = 0; i < n ; i ++) {
             var id = Math.ceil(Math.random()*35);
             res += chars[id];
         }
         return res;
    }
</script>
<!-- 扫描仪脚本 开始-->
<script>
var savePath="D:\\image\\";
var v_addNums=0;  //当前页面扫面记录数
var uploadFlag=true; //上传成功与否标识
//选择扫描仪
function selectScanner()
{
	var rtn = fhkScan.SelectSource(0);
	if (rtn == -1)
	{
		alert("Select scanner error, error code = " + fhkScan.ErrorCode);
	}
}
//初始化扫描仪
function InitSettings()
{
	//本地路径设置
	//fhkScan.FileName = document.getElementById("scanPath").value;
	
	var filenamePrefix = new Date().getTime();
	fhkScan.FileName = savePath+filenamePrefix;
	//设置像素类型：pixelType
	var pixelType = 2;
	/* var rdbPixelType = document.getElementsByName("PixelType");
	for (var i = 0; i < rdbPixelType.length; i++)
	{
		if (rdbPixelType[i].checked)
		{
			pixelType = rdbPixelType[i].value;
			break;
		}
	} */
	if (pixelType == 0)
	{
		// Scan to Black & White
		fhkScan.PixelType = 0;				// 0 - Black & White, 1 - Grayscale, 2 - RGB Color
		fhkScan.FileType = 1;				// 0 - BMP, 1 - TIFF, 2 - Multipage TIFF, 3 - JPEG
		fhkScan.CompressionType = 4;		// 0 - No compress, 4 - CCITT G4 (only for B&W), 5 - JPEG
	}
	else
	{
		// Scan to Gray or Color
		fhkScan.PixelType = pixelType;		// 0 - Black & White, 1 - Grayscale, 2 - RGB Color
		fhkScan.FileType = 3;				// 0 - BMP, 1 - TIFF, 2 - Multipage TIFF, 3 - JPEG
		fhkScan.JPGQuality = 4;				// JPEG data compression level, 0 (small file size) ~ 6 (large file size)
		//fhkScan.CompressionType = 5;
	}

  //设置分辨率:resolution
	
	var resolution_self =99;
	var resolution = 100;
	 var rdbResolution = document.getElementsByName("Resolution");
	 for (var i = 0; i < rdbResolution.length; i++)
	{
		if (rdbResolution[i].checked)
		{
			resolution = rdbResolution[i].value;
			break;
		}
	} 
	document.getElementById("fhkScan").Resolution = resolution_self;		// 0 - 200 dpi, 1 - 240 dpi, 2 - 300 dpi, 3 - 400 dpi, 4 - 500 dpi, 5 - 600 dpi
	
	//自定义分辨率
	document.getElementById("fhkScan").CustomResolution=resolution;

	//设置进纸模式:paperSupply
	var paperSupply = 3;
	 var rdbPaperSupply = document.getElementsByName("PaperSupply");
	for (var i = 0; i < rdbPaperSupply.length; i++)
	{
		if (rdbPaperSupply[i].checked)
		{
			paperSupply = rdbPaperSupply[i].value;
			break;
		}
	}
	// 0 - Flatbed, 1 - ADF front, 2 - ADF double 3 - Auto
	if(paperSupply==3)
	{
		fhkScan.PaperSupply =2;				
		fhkScan.AutomaticSenseMedium=true;
	}
	else 
	{
		fhkScan.PaperSupply = paperSupply;
		fhkScan.AutomaticSenseMedium=false;
	}
	//设置旋转角度:scanRotate
	/* var scanRotate = 0;
	var rdbScanRotate = document.getElementsByName("ScanRotate");
	for (var i = 0; i < rdbScanRotate.length; i++)
	{
		if (rdbScanRotate[i].checked)
		{
			scanRotate = rdbScanRotate[i].value;
			break;
		}
	} */
	fhkScan.ScanRotate = 4;		// 0 - None, 1 - 90 degrees, 2 - 180 degrees, 3 - 270 degrees, 4 - Automatic
	//跳过空白页：SkipWhitePage
	/* var chkSkipWhitePage = document.getElementById("SkipWhitePage");
	if (chkSkipWhitePage.checked)
	{
		fhkScan.SkipWhitePage = 6; 			// 0 - Do not skip, 1~15 - the ratio of black dots in the white page
	}
	else
	{
		fhkScan.SkipWhitePage = 0; 			// 0 - Do not skip, 1~15 - the ratio of black dots in the white page
	} */
	fhkScan.SkipWhitePage = 6; 
	
	//显示源用户界面:chkShowSourceUI
	/* var chkShowSourceUI = document.getElementById("ShowSourceUI");
	if (chkShowSourceUI.checked)
	{
		fhkScan.ShowSourceUI = true;		// true - Display the scanner source UI, false - Do not display
	}
	else
	{
		fhkScan.ShowSourceUI = false;		// true - Display the scanner source UI, false - Do not display
	} */
	fhkScan.ShowSourceUI = false; 
	//文件重写提示:chkPromptOverwrite
	/* var chkPromptOverwrite = document.getElementById("PromptOverwrite");
	if (chkPromptOverwrite.checked)
	{
		fhkScan.Overwrite = 2;
	}
	else
	{
		fhkScan.Overwrite = 1;
	} */
	fhkScan.Overwrite = 1;  //2 :提示，1：自动覆盖
	
	fhkScan.ScanTo = 0;					// 0 - to File, 1 - to DIB, 2 - to Memory, Suggest to File
	fhkScan.ScanCount = -1;				// Number of pages to scan, -1 - all pages on ADF
	fhkScan.DetectPageSize = 2;
	fhkScan.SourceCurrentScan = 0;
}
//扫描入口
function startScan()
{
	InitSettings(); //参数初始化
	var rtn = fhkScan.OpenScanner(0); //打开扫描仪
	if (rtn == -1)
	{
	    alert("Open scanner error, error code = " + fhkScan.ErrorCode);
		return;
	} 	
	rtn = fhkScan.StartScan(0); //开始扫描
	if (rtn == -1)
	{
		alert("Start scan error, error code = " + fhkScan.ErrorCode);
	}
	fhkScan.CloseScanner(0); //关闭扫描
}

//扫描绑定事件，美扫描一次，调用一次此事件
function OnScanToFileEvent(scanFilePath)
{
	// Transform scanned jpg file to Base64 string
	// parameters:
	//   1. full path of the file to be transformed
	//   2. true - delete source jpg file, false - keep the jpg file
	//var base64 = img2base64.DoTrans(scanFilePath, false);  //图片转换成Base64

	/* var imageBase64Results = document.getElementById("imageBase64");
	var imageBase64Str = imageBase64Results.value;
	if(imageBase64Str!=''){
	    imageBase64Str +=','
	    imageBase64Str += base64;
	}else{
		imageBase64Str += base64;
	}
	addPic(scanFilePath);
	imageBase64Results.value=imageBase64Str; */
	
	var randDom=GetRandomNum(15);
	//var fileName=scanFilePath.substring(scanFilePath.lastIndexOf("\\")+1,scanFilePath.lastIndexOf("."));
	var base64 = img2base64.DoThumbnailTrans(scanFilePath, 300); //生成base64缩略图编码
	
	var flag="0";
	 $('#yxxxinfo > li > input[name=checkbox2]').each(function () {
		
		   if($(this).prop("checked")){
			var obj=$(this).parent().find('img');
			var objInput=$(this).parent().find('input[name=picBase64Str]');
			 objInput.val(base64);
		     obj[0].src="data:image/jpeg;base64,"+base64;
		     obj[0].name=scanFilePath;
		     flag="1";
		     $(this).prop("checked",false);
		     var ReplaceId=$(this).parent().find('input[name=replaceName]')[0].getAttribute("id");		     
			 document.getElementById(ReplaceId).style.background="#ff4d4d";
			 var serieObj=$(this).parent().find('input[name=picDeviceId]');
			 serieObj.val($("#SerialNumberFlag").val());
			 var serieObj=$(this).parent().find('input[name=picDeviceId]');
			 serieObj.val($("#SerialNumberFlag").val());
		     return;
		   }
		  
    });
	 if(flag!="1"){
		addPic(base64,randDom,scanFilePath,$("#SerialNumberFlag").val());
		v_addNums++;
		$('#addNums').text(v_addNums);
	 }
} 
</script> 

<script for="fhkScan" event="ScanToFile(scanFilePath)">
	OnScanToFileEvent(scanFilePath);
</script>

<!-- 扫描仪脚本 结束-->

<!-- 高拍仪脚本 开始-->
<script>
	//开启摄像头
	function Start_onclick()
	{
		document.getElementById("captrue").vSetResolution(5); //开启前默认分辨率
		document.getElementById("captrue").bStopPlay();
		document.getElementById("captrue").bStartPlay();
	}
	//关闭摄像头
	function Stop_onclick()
	{
		document.getElementById("captrue").bStopPlay();
	}
	//参数设置
	function ParaSet_onclick() {
		document.getElementById("captrue").displayVideoPara();		
	}
	//设置Dpi
	function setDpi(){
		document.getElementById("captrue").vSetDpi(600,600);
	}
	//拍摄
	function shot(){
		if($("#captrue").css("display")=='none'){
			var msg = "当前不在拍摄模式，是否切换到拍摄模式？\n\n\t请确认或取消！";
			if (confirm(msg)==true){
				document.getElementById("HighShotDiv").style.display="block"; 
				document.getElementById("FisScannerDiv").style.display="none"; 
				document.getElementById("captrue").style.display="block"; 
				document.getElementById("playOcx").style.display="none"; 				
		 		return true;
			}else{
				return false;
			}
		}
		/* if($("#captrue").css("display")=='none'){
			var msg = "当前不在拍摄模式，是否切换到拍摄模式？\n\n\t请确认或取消！";
			if (confirm(msg)==true){
				$("#HighShotDiv").attr("style", "display:block;");
		 		$("#FisScannerDiv").attr("style", "display:none;");
		 		$("#captrue").attr("style", "display:block;");
		 		$("#playOcx").attr("style", "display:none;");
		 		return true;
			}else{
				return false;
			}
		} */ 
		
		var filenamePrefix = new Date().getTime();
		var FileName=savePath+filenamePrefix+".jpg";
		var randDom=GetRandomNum(15);
		var r = document.getElementById("captrue").bSaveJPG(savePath,filenamePrefix);
		document.getElementById("captrue").bRotateJpgImage(savePath+filenamePrefix+".jpg",90);
		//var str = cap.AddImage(savePath+d+".jpg"); 
		//设置水印
		/* var lsh= $("#lshFlag").val();
		document.getElementById("captrue").vSetWaterPrint(1,lsh,0);
		document.getElementById("captrue").vSetWaterPrintFontSize(500);
		document.getElementById("captrue").vSetWaterPrintFontColor(0xCD2626);
		document.getElementById("captrue").vSetWaterPrintPos(600,200); */
		var base64 = img2base64.DoThumbnailTrans(FileName, 300);
		//var serinum = document.getElementById("captrue").sGetDevicesId();
		var serinum = $("#gpySerialNumberFlag").val();
		 var flag="0"; 
		 $('#yxxxinfo > li > input[name=checkbox2]').each(function () {
			
			   if($(this).prop("checked")){
				var obj=$(this).parent().find('img');
				var objInput=$(this).parent().find('input[name=picBase64Str]');
				 objInput.val(base64);
			     obj[0].src="data:image/jpeg;base64,"+base64;
			     obj[0].name=FileName;
			     flag="1"; 
			     $(this).prop("checked",false);
			     var ReplaceId=$(this).parent().find('input[name=replaceName]')[0].getAttribute("id");		     
				 document.getElementById(ReplaceId).style.background="#ff4d4d";
				 var serieObj=$(this).parent().find('input[name=picDeviceId]');
				 serieObj.val(serinum);
			     return;
			   }
			  
	     });
		 if(flag!="1"){ //新增图片
	 		addPic(base64,randDom,FileName,serinum);
	 		document.getElementById("replacePic"+randDom).style.background="#ff4d4d";
			v_addNums++;
			$('#addNums').text(v_addNums);
		 }
	}
	//PIN设置
	function pin() {
		document.getElementById("captrue").vSetCapturePin();
		document.getElementById("captrue").bStopPlay();
		document.getElementById("captrue").bStartPlay();
		/* var modes = document.getElementsByName("mode");
		var value;
		for(var i = 0;i < modes.length;i ++) {
			if(modes[i].checked) value = modes[i].value;
		}
		if(value == 1) {
			document.getElementById("captrue").bStartPlay();
			//captrue.bSetMode(3);
		} else if(value == 2) {
			document.getElementById("captrue").bStartPlay2(0);
		}  */
	}
	function setMode(el) {
		var value = el.value;
		if(value == 1) {
			document.getElementById("captrue").bStopPlay();
			document.getElementById("captrue").bStartPlay();
			//captrue.bSetMode(3);
		} else if(value == 2) {
			document.getElementById("captrue").bStopPlay();
			document.getElementById("captrue").bStartPlay2(0);
		} 
	}
	//设置曝光率
	function setExposure(el) {
		document.getElementById("captrue").vSetExposure(el.value);
	}
</script>
<!-- 高拍仪脚本 结束-->
</html>